<%@ tag pageEncoding="UTF-8"%>
<%@ attribute name="nvgList" type="java.util.List" required="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>

<c:forEach var="nvg" items="${nvgList}">
	<li>
		<a id="tree_note_${nvg.id}" for="${nvg.id}" parent="${nvg.parent}" class="${nvg.children !=null ?"tree_node tree_plus":"tree_square" }"></a> 
		<span> <a class="docs_16" href="${nvg.id}.do">${nvg.title}</a></span>
		<c:if test="${nvg.children !=null }">
			<div class="nvg_children_${nvg.id} hide">
				<ul>
					<tag:nvgTreeItems nvgList="${nvg.children}"></tag:nvgTreeItems>
				</ul>
			</div>
		</c:if>
	</li>
</c:forEach >